import request from '@/utils/request'

// 查询设备交互通信列表
export function listInteraction(query) {
  return request({
    url: '/device/interaction/list',
    method: 'get',
    params: query
  })
}

// 查询设备交互通信详细
export function getInteraction(id) {
  return request({
    url: '/device/interaction/' + id,
    method: 'get'
  })
}

// 新增设备交互通信
export function addInteraction(data) {
  return request({
    url: '/device/interaction',
    method: 'post',
    data: data
  })
}

// 修改设备交互通信
export function updateInteraction(data) {
  return request({
    url: '/device/interaction',
    method: 'put',
    data: data
  })
}

// 删除设备交互通信
export function delInteraction(id) {
  return request({
    url: '/device/interaction/' + id,
    method: 'delete'
  })
}
